using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
using OgilvyOne.Model;
using System.Collections;
namespace OgilvyOne.BLL
{
    public class Role
    {
        // Methods
        public void Delete(int role_uid)
        {
            OgilvyOne.DALFactory.Role.Create().Delete(role_uid);
        }

        public IList getRoleList()
        {
            return OgilvyOne.DALFactory.Role.Create().getRoleList();
        }

        public IList getRoleList(int roleid)
        {
            return OgilvyOne.DALFactory.Role.Create().getRoleList(roleid);
        }

        public IList getRoleList(string rolename)
        {
            return OgilvyOne.DALFactory.Role.Create().getRoleList(rolename);
        }

        public IList getRoleList(int roleid, string rolename)
        {
            return OgilvyOne.DALFactory.Role.Create().getRoleList(roleid, rolename);
        }

        public void Insert(RoleInfo role)
        {
            OgilvyOne.DALFactory.Role.Create().Insert(role);
        }

        public void Update(RoleInfo role)
        {
            OgilvyOne.DALFactory.Role.Create().Update(role);
        }

    }
}
